<template>
  <div :id="id" style="height: 400px;width:400px;">
  </div>
</template>
<script>
import * as echarts from "echarts";

export default {
  name: '',
  data() {
    return {

    }
  },
  props: ['id', 'pieType'],
  created() {
  },
  computed: {
  },
  methods: {
  },
  mounted() {

    // 初始化echarts实例
    var myChart = echarts.init(document.getElementById(this.id));
    // 根据时间线数据设置ECharts实例的选项
    myChart.setOption(this.pieType);
  }
}
</script>
<style lang='less' scoped></style>
